/* position.h */

#ifndef DODO_POSITION_H
#define DODO_POSITION_H

namespace dodo_plot
{

class Point;

struct Position
{
	double left;
	double right;
	double top;
	double bottom;

	Position();
	Position(double l, double r, double t, double b);
	Position(const Point& p1, const Point& p2);
	
	inline double width() { return right - left; }
	inline double width() const { return right - left; }
	inline double height() { return bottom - top; }
	inline double height() const { return bottom - top; }
};

}


#endif //DODO_POSITION_H

